package com.lagou.io;

import com.lagou.sqlSession.SqlSessionFactoryBuilder;

import java.io.InputStream;

public class Resources {

    //根据配置文件的路径，将配置文件加载成字节数入流，存储在内存中
    public static InputStream getResourceAsStream(String path){
        //获取类加载器
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);

        return resourceAsStream;

    }
}
